package com.hl.service;

import com.hl.domain.Articletype;
import com.hl.mapper.ArticletypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Hr
 * @date 2024/9/5 21:52
 */
@Service
public class ArticleTypeService {
    @Autowired
    private ArticletypeMapper articletypeMapper;

    //根据id查某种类型
    public Articletype selectByPrimaryKey(Long id){
        return articletypeMapper.selectByPrimaryKey(id);
    }

    //查询所有类型
    public List<Articletype> findAllArticleType(){
        return articletypeMapper.findAllArticleType();
    }
}
